import request from '@/utils/request'

export function fetchSettingsAPI(params) {
  return request({
    method: 'get',
    url: '/sys/role',
    params
  })
}
export const addRoleInfoAPI = data => request.post('/sys/role', data)
export const editRoleFormAPI = id => request.get(`/sys/role/${id}`)
export const updateRoleInfoAPI = data => request.put(`/sys/role/${data.id}`, data)
export const delRoleInfoAPI = params => request.delete(`/sys/role/${params}`, params)
